package com.qinggeng.project.tool.sms.domain;

import com.qinggeng.framework.aspectj.lang.annotation.Excel;
import com.qinggeng.framework.web.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 短信通讯对象 sys_sms
 *
 * @author qinggeng
 * @date 2020-03-14
 */
@Data
public class SysSms extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 短信ID */
    private Long smsId;

    /** 事件 */
    @Excel(name = "事件")
    private String event;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 消息 */
    @Excel(name = "消息")
    private String msg;

    /** IP */
    @Excel(name = "IP")
    private String ip;

    /** 短信平台类型 */
    @Excel(name = "短信平台类型")
    private String type;

    public Long getSmsId() {
        return smsId;
    }

    public void setSmsId(Long smsId) {
        this.smsId = smsId;
    }

    public String getEvent() {
        return event;
    }

    public void setEvent(String event) {
        this.event = event;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("smsId", getSmsId())
            .append("event", getEvent())
            .append("phone", getPhone())
            .append("msg", getMsg())
            .append("ip", getIp())
            .append("type", getType())
            .append("createTime", getCreateTime())
            .toString();
    }
}
